<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>创建客户池</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link href="/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/css/materialdesignicons.min.css" rel="stylesheet"/>
    <link href="/css/animate.min.css" rel="stylesheet"/>
    <link href="/css/style.min.css" rel="stylesheet"/>
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="/css/input_tags.css"/>
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <link rel="stylesheet" href="/js/need/verfont.css" />
    <link rel="stylesheet" href="/js/need/select.2.0.css" />
    <link rel="stylesheet" href="/css/skin.css"/>
    <link rel="stylesheet" href="/css/customerManager/addCustomerPool.css"/>

</head>
<body>
<div class="container-fluid p-t-15">
    <div class="row">
        <div class="col-sm-12">
            <div class="card" style="background: #fff;">
                <div class="card-header">
                    <h1>创建客户池</h1>
                </div>
                <div class="card-body">
                    <form class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-2 control-label label-required" for="customerPoolName">客户池名称</label>
                            <div class="col-sm-4">
                                <input type="text" id="customerPoolName" class="form-control" placeholder="请输入客户池名称" maxlength="20">
                            </div>
                            <label class="col-sm-2 control-label label-required" for="source">来源</label>
                            <div class="col-sm-4">
                                <input type="text" id="source" class="form-control" placeholder="请输入来源" maxlength="20">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label label-required">所在地区</label>
                            <div class="col-sm-4 " style="display: flex;">
                                <select onchange="changeCity()" id="province" name="province"
                                        style="margin-right: 20px;width: 180px;" class="form-control" type="text"
                                        title="请选择" data-live-search="true"></select>
                                <select id="city" name="city" style="width: 180px;" class="form-control" type="text"
                                        title="请选择" data-live-search="true"></select>
                            </div>
                            <label class="col-sm-2 control-label label-required" for="industry">所在行业</label>
                            <div class="col-sm-4 ">
                                <select class="form-control" id="industry" type="text" data-live-search="true">
                                    <option value="">请输入行业</option>
                                    <option value="1">农、林、牧、渔业</option>
                                    <option value="2">采矿业</option>
                                    <option value="3">制造业</option>
                                    <option value="4">电力、热力、燃气及水生产和供应业</option>
                                    <option value="5">建筑业</option>
                                    <option value="6">批发和零售业</option>
                                    <option value="7">交通运输、仓储和邮政业</option>
                                    <option value="8">住宿和餐饮业</option>
                                    <option value="9">信息传输、软件和信息技术服务业</option>
                                    <option value="10">金融业</option>
                                    <option value="11">房地产业</option>
                                    <option value="12">租赁和商务服务业</option>
                                    <option value="13">科学研究和技术服务业</option>
                                    <option value="14">水利、环境和公共设施管理业</option>
                                    <option value="15">居民服务、修理和其他服务业</option>
                                    <option value="16">教育</option>
                                    <option value="17">卫生和社会工作</option>
                                    <option value="18">文化、体育和娱乐业</option>
                                    <option value="19">公共管理、社会保障和社会组织</option>
                                    <option value="20">国际组织</option>
                                    <option value="21">其他</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label label-required">客户池类型</label>
                            <div class="col-sm-4">
                                <select class="form-control" id="poolType" type="text" title="请选择"
                                        data-live-search="true">
                                    <option value="1">优</option>
                                    <option value="2">良</option>
                                    <option value="3">一般</option>
                                </select>
                            </div>
                            <label class="col-sm-2 control-label label-required" for="capacity">客户池容量</label>
                            <div class="col-sm-4" style="display: flex;align-items: center;">
                                <input type="text" id="capacity" class="form-control" placeholder="请输入客户池容量"
                                       oninput="value=value.replace(/[^\d]/g,'')" maxlength="20">
                                <span style="padding-left: 16px;">条</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label label-required">客户池性质</label>
                            <div class="col-sm-4" style="display: flex;align-items: center;height: 38px;">
                                <div>
                                    <input type="radio" value="1" name="nature" style="margin-right: 6px;"
                                           onclick="seleceChi(1)" maxlength="20">全国公有池
                                </div>
                                <div style="margin-left: 20px;display: flex;align-items: center;">
                                    <input type="radio" value="2" name="nature" onclick="seleceChi(2)" style="margin-right: 6px;" maxlength="20">分公司公有池
                                    <div id="search"  style="margin-left: 16px;width: 230px;"></div>
                                </div>
                            </div>
                            <label class="col-sm-2 control-label" id="companyLabel" for="companySelect">所属公司</label>
                            <div class="col-sm-4" id="companyDiv">
                                <select id="companySelect" name="companySelect" class="form-control" type="text"
                                        placeholder="请选择所属公司"></select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label label-required">标签</label>
                            <div class="col-sm-10">
                                <div style="width:100%;">
                                    <input type="text" name="staticPath" value="" id="staticPath2"/>
                                </div>
                            </div>
                        </div>
                    </form>
                    <div>
                        <h4 style="font-size: 14px;">规则设置</h4>
                        <div style="display: flex;">
                            <div class="one" style="flex-grow: 1;">
                                <div class="title-rule">领取规则</div>
                                <form class="form-horizontal col-sm-12">
                                    <div class="form-group">
                                        <label class="col-sm-5 control-label label-required">最多领取数量</label>
                                        <div class="col-sm-7">
                                            <input type="text" id="maximumNumber" class="form-control"
                                                   placeholder="请输入最多领取数量" oninput="value=value.replace(/[^\d]/g,'')" maxlength="20">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-5 control-label label-required">同一客户不能连续领取间隔</label>
                                        <div class="col-sm-7 " style="display: flex; align-items: center;" >
                                            <input type="text" id="timeInterval" class="form-control"
                                                   placeholder="请输入领取间隔" oninput="value=value.replace(/[^\d]/g,'')" maxlength="20">
                                            <span style="padding-left: 6px;">h</span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-5 control-label label-required">任意客户不能连续领取间隔</label>
                                        <div class="col-sm-7 " style="display: flex; align-items: center;" >
                                            <input type="text" id="anyTimeInterval" class="form-control"
                                                   placeholder="请输入领取间隔" oninput="value=value.replace(/[^\d]/g,'')" maxlength="20">
                                            <span style="padding-left: 6px;">s</span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-5 control-label" id="timeLimitLabel">其它公司时间限制</label>
                                        <div class="col-sm-7 " style="display: flex; align-items: center;" id="timeLimitDiv">
                                            <input type="text" id="timeLimit" class="form-control"
                                                   placeholder="请输入时间限制" oninput="value=value.replace(/[^\d]/g,'')" maxlength="20">
                                            <span style="padding-left: 6px;">h</span>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div class="two" style="flex-grow: 1;">
                                <div class="title-rule" style="padding-left: 34px;">退回规则</div>
                                <form class="form-horizontal col-sm-12">
                                    <div class="form-group">
                                        <label class="col-sm-5 control-label label-required">无跟进退回时间间隔</label>
                                        <div class="col-sm-7 " style="display: flex; align-items: center;" >
                                            <input type="text" id="returnInterval" class="form-control"
                                                   placeholder="请输入无跟进退回时间间隔" oninput="value=value.replace(/[^\d]/g,'')" maxlength="20">
                                            <span style="padding-left: 6px;">h</span>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <div style="width: 100%;text-align: center;">
                        <button class="btn btn-primary" type="submit" style="margin-right: 30px;"
                                onclick="addCustomerPool()">提交
                        </button>
                        <button class="btn btn-default" type="button" onclick="cancelAddCustomerPool()">取消</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/crm/common/city.js"></script>
<script src="/js/crm/common/common.js"></script>
<script src="/js/crm/common/input-tag.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script src="/js/verSelect.2.0.js"></script>
<script src="/js/crm/customerManager/addCustomerPool.js"></script>
</html>